package org.duiduo.constant;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 返回常量
 *
 * @author liangze
 * @date 2021/9/24 16:49
 */
public class ResponseConstants {

    private ResponseConstants() {
        throw new AssertionError();
    }

    /**
     * @Fields SUCCESS : 请求接口成功
     */
    public static final boolean SUCCESS = true;

    /**
     * @Fields FAIL : 请求接口失败
     */
    public static final boolean FAIL = false;

    /**
     * 响应 1
     */
    @Getter
    @AllArgsConstructor
    public static enum Resp_1 {

        //请求应答码
        REQ_00("00", "请求成功"),
        REQ_01("01", "请求失败"),
        REQ_02("401", "请重新登录"),
        REQ_A1("A1", "请求参数异常"),
        REQ_98("98", "请求异常"),


        //响应应答码
        RESP_00("00", "导出失败"),
        RESP_01("01", "这本书籍的库存不足"),
        RESP_02("02", "您的账户余额不足，请充值~"),
        RESP_03("03", "导入失败"),
        RESP_04("04", ""),
        RESP_05("05", ""),
        RESP_06("06", ""),
        RESP_07("07", ""),
        RESP_08("08", ""),
        RESP_09("09", ""),
        RESP_10("10", ""),
        RESP_11("11", ""),
        RESP_12("12", ""),
        RESP_13("13", ""),
        RESP_14("14", ""),
        RESP_15("15", ""),
        RESP_16("16", ""),
        RESP_17("17", ""),
        RESP_18("18", ""),
        RESP_19("19", ""),
        RESP_20("20", ""),
        RESP_21("21", ""),
        RESP_22("22", ""),
        RESP_23("23", ""),
        RESP_24("24", ""),
        RESP_25("25", ""),
        RESP_26("26", ""),
        RESP_27("27", ""),
        RESP_28("28", ""),
        RESP_29("29", ""),
        RESP_30("30", ""),
        RESP_31("31", ""),
        RESP_32("32", ""),
        RESP_33("33", ""),
        RESP_34("34", ""),
        RESP_35("35", ""),
        RESP_36("36", ""),
        RESP_37("37", ""),
        RESP_38("38", ""),
        RESP_39("39", ""),
        RESP_40("40", ""),
        RESP_41("41", ""),
        RESP_42("42", ""),
        RESP_43("43", ""),
        RESP_44("44", ""),
        RESP_45("45", ""),
        RESP_46("46", ""),
        RESP_47("47", ""),
        RESP_48("48", ""),
        RESP_49("49", ""),
        RESP_50("50", ""),
        RESP_51("51", ""),
        RESP_52("52", ""),
        RESP_53("53", ""),
        RESP_54("54", ""),
        RESP_55("55", ""),
        RESP_56("56", ""),
        RESP_57("57", ""),
        RESP_58("58", ""),
        RESP_59("59", ""),
        RESP_60("60", ""),
        RESP_61("61", ""),
        RESP_62("62", ""),
        RESP_63("63", ""),
        RESP_64("64", ""),
        RESP_70("70", ""),
        RESP_71("71", ""),
        RESP_98("98", ""),
        RESP_99("99", ""),
        RESP_100("100", "");

        /**
         * @Fields code : 响应代码
         */
        private String code;

        /**
         * @Fields message : 响应消息
         */
        private String message;
    }

    /**
     * 响应 2
     */
    @Getter
    @AllArgsConstructor
    public static enum Resp_2 {

        // 响应应答码
        RESP_00( "用户名已存在"),
        RESP_01( "这本书籍的库存不足"),
        RESP_02( "您的账户余额不足，请充值~"),
        RESP_03( ""),
        RESP_04( ""),
        RESP_05( ""),
        RESP_06( ""),
        RESP_07( ""),
        RESP_08( ""),
        RESP_09( ""),
        RESP_10( ""),
        RESP_11( ""),
        RESP_12( ""),
        RESP_13( ""),
        RESP_14( ""),
        RESP_15( ""),
        RESP_16( ""),
        RESP_17( ""),
        RESP_18( ""),
        RESP_19( ""),
        RESP_20( ""),
        RESP_21( ""),
        RESP_22( ""),
        RESP_23( ""),
        RESP_24( ""),
        RESP_25( ""),
        RESP_26( ""),
        RESP_27( ""),
        RESP_28( ""),
        RESP_29( ""),
        RESP_30( ""),
        RESP_31( ""),
        RESP_32( ""),
        RESP_33( ""),
        RESP_34( ""),
        RESP_35( ""),
        RESP_36( ""),
        RESP_37( ""),
        RESP_38( ""),
        RESP_39( ""),
        RESP_40( ""),
        RESP_41( ""),
        RESP_42( ""),
        RESP_43( ""),
        RESP_44( ""),
        RESP_45( ""),
        RESP_46( ""),
        RESP_47( ""),
        RESP_48( ""),
        RESP_49( ""),
        RESP_50( ""),
        RESP_51( ""),
        RESP_52( ""),
        RESP_53( ""),
        RESP_54( ""),
        RESP_55( ""),
        RESP_56( ""),
        RESP_57( ""),
        RESP_58( ""),
        RESP_59( ""),
        RESP_60( ""),
        RESP_61( ""),
        RESP_62( ""),
        RESP_63( ""),
        RESP_64( ""),
        RESP_70( ""),
        RESP_71( ""),
        RESP_98( ""),
        RESP_99( ""),
        RESP_100( "");

        /**
         * @Fields message : 响应消息
         */
        private String message;
    }
}